package com.mhl.service;

import com.mhl.dao.EmployeeDao;
import com.mhl.domain.Employee;

public class EmployeeService {

    EmployeeDao employeeDao = new EmployeeDao();

    public Employee SqlSelect(String empId,String pwd){

        String sql = "select * from employee where empId=? and pwd=md5(?)";
        Employee employee = employeeDao.querySingle(sql,Employee.class,empId,pwd);
        return employee;
    }
}
